package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.FacilityStates;
import com.woniuxy.light_smart.mapper.FacilityStatesMapper;
import com.woniuxy.light_smart.service.FacilityStatesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FacilityStatesServiceImpl implements FacilityStatesService {
    @Resource
    private FacilityStatesMapper facilityStatesMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return facilityStatesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(FacilityStates record) {
        return facilityStatesMapper.insertSelective(record);
    }

    @Override
    public FacilityStates selectByPrimaryKey(Long id) {
        return facilityStatesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FacilityStates record) {
        return facilityStatesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<FacilityStates> selAll() {
        return facilityStatesMapper.selAll();
    }
}
